package com.dhcc.utils.zip;

import java.io.IOException;
import java.io.InputStream;

public class NamedInputStream extends InputStream {
	private String name;
	private InputStream is;
	public NamedInputStream(String name, InputStream is) {
		this.name = name;
		this.is = is;
	}
	@Override
	public int read() throws IOException {
		return is.read();
	}
	
	
	public String getName() {
		return name;
	}
	
	@Override
	public void close() throws IOException {
		is.close();
	}
}
